package com.wish.business.service.impl;

import com.wish.business.entity.Business;
import com.wish.business.entity.vo.BusinessVo;
import com.wish.business.mapper.BusinessMapper;
import com.wish.business.service.IBusinessService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 杨子强-商户表 服务实现类
 * </p>
 *
 * @author benjamin
 * @since 2022-03-26
 */
@Service
public class BusinessServiceImpl extends ServiceImpl<BusinessMapper, Business> implements IBusinessService {

    @Override
    public List<BusinessVo> businessList() {
        return getBaseMapper().businessList();
    }

    @Override
    public BusinessVo getBusMsg(Long id) {
        return getBaseMapper().getBusMsg(id);
    }

    @Override
    public int updateStatus(BusinessVo businessVo) {
        return getBaseMapper().updateStatus(businessVo);
    }
}
